package com.wf.ew.api.controller;

import com.wf.ew.api.base.BaseApiController;
import com.wf.ew.common.JsonResult;
import com.wf.ew.system.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 车辆出车率 信息操作处理
 * 
 * @author ruoyi
 * @date 2019-03-21
 */
@RestController
@RequestMapping("/api/test")
public class TestController extends BaseApiController {

	/**
	 * 修改个人信息
	 */
	@PostMapping("/show")
	@ResponseBody
	public JsonResult show(User user, HttpServletRequest request) {
		System.out.println("1111======");
		System.out.println("1111======");
		System.out.println("1111======");
		System.out.println("1111======");
		return JsonResult.ok("show()");
	}

	/**
	 * 修改个人信息
	 */
	@PostMapping("/testc")
	@ResponseBody
	public JsonResult testc(User user, HttpServletRequest request) {
		System.out.println("22222======");
		System.out.println("22222======");
		System.out.println("22222======");
		System.out.println("22222======");
		return JsonResult.ok("testc()");
	}


}
